package com.bdqn.common.to.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;


/**
 * 上架商品到Es数据库的模型
 */
@Data
public class SkuEsModel {

    private Long skuId;
    private Long spuId;
    private String skuTitle;
    private BigDecimal skuPrice;
    private String skuImg;
    private Long saleCount; //销量

    private Boolean hasScore;   //是否有库存
    private Long hotScore;  //热度评分，查询评分

    private Long brandId;
    private Long catalogId;
    private String brandName;
    private String brandImg;    //对标pms_brand表内的log图片字段
    private String catalogName;
    private List<Attrs> attrs;

    @Data
    public static class  Attrs{
        private Long attrId;
        private String attrName;
        private String attrValue;
    }

}
